package dao;

import users.Subscription;

/**
 * Data access object to allow modifications of a subscription in a database.
 */
public interface SubscriptionDAO {

    /**
     * Save the given subscription in the database.
     *
     * @param sub  subscription to save in the database
     */
    void saveSubscription(Subscription sub);

    /**
     * Remove the given subscription from the database.
     *
     * @param sub  subscription to remove from the database
     */
    void removeSubscription(Subscription sub);

}
